﻿import request from '/@/utils/request';
enum Api {
  AddStall = '/api/stall/add',
  DeleteStall = '/api/stall/delete',
  UpdateStall = '/api/stall/update',
  PageStall = '/api/stall/page',
  DetailStall = '/api/stall/detail',
  GetCommunityRoomIdDropdown = '/api/stall/CommunityRoomIdDropdown',
  GetOccupantAuditPeopleIdDropdown = '/api/stall/OccupantAuditPeopleIdDropdown',
}

// 增加车位表
export const addStall = (params?: any) =>
	request({
		url: Api.AddStall,
		method: 'post',
		data: params,
	});

// 删除车位表
export const deleteStall = (params?: any) => 
	request({
			url: Api.DeleteStall,
			method: 'post',
			data: params,
		});

// 编辑车位表
export const updateStall = (params?: any) => 
	request({
			url: Api.UpdateStall,
			method: 'post',
			data: params,
		});

// 分页查询车位表
export const pageStall = (params?: any) => 
	request({
			url: Api.PageStall,
			method: 'post',
			data: params,
		});

// 详情车位表
export const detailStall = (id: any) => 
	request({
			url: Api.DetailStall,
			method: 'get',
			data: { id },
		});

export const getCommunityRoomIdDropdown = () =>
		request({
		url: Api.GetCommunityRoomIdDropdown,
		method: 'get'
		});
export const getOccupantAuditPeopleIdDropdown = () =>
		request({
		url: Api.GetOccupantAuditPeopleIdDropdown,
		method: 'get'
		});

